package com.yeyks.commonReference.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;
import java.util.List;

@ApiModel(description = "添加账号")
@Data
public class AddSysUserDTO implements Serializable {

    private static final long serialVersionUID = -5222898009514444290L;

    @ApiModelProperty(value = "姓名",required = true)
    @NotBlank(message="姓名不能为空")
    private String name;

    @ApiModelProperty(value = "手机",required = true)
    private String phone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("区域")
    private String area;

    @ApiModelProperty("账号类型")
    private String type;

    @ApiModelProperty("省代编码")
    private String provinceCode;

    @ApiModelProperty("市代编码")
    private String cityCode;

    @ApiModelProperty("区县代编码")
    private String countryCode;

    @ApiModelProperty(value = "账号",required = true)
    @NotBlank(message="账号不能为空")
    private String username;

    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message="密码不能为空")
    private String password;

    @ApiModelProperty("角色")
    private List<Long> roleIdList;

}
